package commons.client;

import java.util.ArrayList;
import java.util.List;

import com.amazonaws.services.autoscaling.model.AutoScalingGroup;
import com.amazonaws.services.identitymanagement.model.User;

/**
 * Class representing an AWS user with some more information.
 * @author Lilia Rodrigues Sampaio - liliars@lsd.com.br
 *
 */
public class UserModel {

	//which is better: put already the key, or just the path? 
	public static String AWS_SECRET_KEY = "autoscaling-amazon.AwsCredentials.properties";
	public static String AWS_ACCESS_KEY_ID = "autoscaling-amazon.AwsCredentials.properties";
	
	private User usr;
	private List<AutoScalingGroup> groupsOwner;
	private String configName;
	private String instanceType;
	
	public UserModel() {
		usr = new User();
		usr.setUserName("scaling_test");
		
		this.groupsOwner = new ArrayList<AutoScalingGroup>();
		groupsOwner.add(new AutoScalingGroup());
	}
	
	public User getAWSUser() {
		return usr;
	}
	
	public List<AutoScalingGroup> getGroups() {
		return groupsOwner;
	}
	
	//find a better place to put this information
	public void createConfiguration(String configName, String instanceType) {
		this.configName = configName;
		this.instanceType = instanceType;
	}
	
	//find a better place to put this information
	public String getConfigName() {
		return configName;
	}
	
	//find a better place to put this information
	public String getInstanceType() {
		return instanceType;
	}
	
}
